<#import "/spring.ftl" as spring/>
<#assign xhtmlCompliant = true in spring>

<#include "/tags/userNotification.ftl">
<#include "/tags/publicProfileHeader.ftl">
<#include "/tags/famousQuote.ftl">
<#include "/tags/userCompleteness.ftl">
<#include "/tags/userIntroTag.ftl">
<#include "/tags/friendList.ftl">
<#include "/tags/friendHintTag.ftl">
<#include "/tags/updatedSinceTag.ftl">
<#include "/tags/DDMMYYYY.ftl">
<#include "/tags/likeTag.ftl">
<#include "/tags/entryAvatar.ftl">
<#include "/tags/userAvatar.ftl">
<#include "/tags/viewEntryTag.ftl">
<#include "/tags/viewHowIDoneTag.ftl">
<#include "/tags/commentTag.ftl">
<#include "/tags/commentBoxTag.ftl">
<#include "/tags/activitiesTag.ftl">
<#include "/tags/topGoalsTag.ftl">

<head>
	<link rel="stylesheet" type="text/css" href="${rc.contextPath}/styles/style_dev.css">	
	<link type="text/css" rel="stylesheet" href="${rc.contextPath}/scripts/cleditor/jquery.cleditor.css">
	<link rel="stylesheet" type="text/css" href="${rc.contextPath}/styles/jquery.alertbox.css">	
	<script type="text/javascript" src="${rc.contextPath}/scripts/cleditor/jquery.cleditor.js"></script>
	<script type="text/javascript" src="${rc.contextPath}/scripts/jquery.easing.1.3.js"></script>
	<script type="text/javascript" src="${rc.contextPath}/scripts/jquery.alertbox.js"></script>
	<title><#if data.entry??>${data.entry.title}<#else>${data.entryDone.title}</#if></title>
</head>

<!-- user's status and notifications -->
<#if data.userInSession??>
	<@userNotification />
<#else>
	<@publicProfileHeader data/> 
</#if>

<div id="infomation">
	<div id="left">
		
		<@famousQuote />
		<div class="w9">
			<div class="more1"></div>
		</div>
		<#if data.entry??>					
			<!-- entry view -->
			<div class="archicle" rel="${data.entry.id}">
				<@viewEntry title=data.entry.title goalId=data.entry.goalId goalTitle=data.entry.goalTitle 
		      		  youLikeThis=data.entry.youLikeThis youCheerThis=data.entry.youCheerThis likeCount=data.entry.likeCount cheerCount=data.entry.cheerCount 
		      		  commentCount=data.entry.commentCount entryUpdatedSince=data.entry.updatedSince
				    				ownerName=data.entry.ownerName imgURL=data.entry.imgURL body=data.entry.body entryId=data.entry.id 
				    			      cheerCount=data.entry.cheerCount commentCount=data.entry.commentCount goalCreatedDate=data.entry.goalCreatedDate
				    			      createdDate=data.entry.createdDate createdMonth=data.entry.createdMonth 
				    			      createdYear=data.entry.createdYear ownerAvatar=data.entry.ownerAvatar comments=data.entry.comments/>				
			</div>
			<!-- end of entry view -->
		<#else>
			<!-- entry done view -->
			<div class="archicle">
				<@viewHowIDone title=data.entryDone.title goalId=data.entryDone.goalId goalTitle=data.entryDone.goalTitle 
	        							youLikeThis=data.entryDone.youLikeThis likeCount=data.entryDone.likeCount cheerCount=data.entryDone.cheerCount 
	        							ownerName=data.entryDone.ownerName experience=data.entryDone.experience 
	        						   tookType=data.entryDone.tookType tookAmount=data.entryDone.tookAmount 
	        						   imgURL=data.entryDone.imgURL solution=data.entryDone.solution 
	        						   entryUpdatedSince=data.entryDone.updatedSince
									   tip=data.entryDone.tip resources=data.entryDone.resources entryId=data.entryDone.id 
									   cheerCount=data.entryDone.cheerCount commentCount=data.entryDone.commentCount 
									   goalCreatedDate=data.entryDone.goalCreatedDate comments=data.entryDone.comments
									   createdDate=data.entryDone.createdDate createdMonth=data.entryDone.createdMonth 
									   createdYear=data.entryDone.createdYear ownerAvatar=data.entryDone.ownerAvatar />				
			</div>
			 <!-- end of entry done view -->
		</#if>
	</div>
	<!-- end of left zone-->
    
    <div id="right">
    	<#if data.userInSession??>
	  		<@userCompleteness />
	      	<@topGoals />
	  		<@userIntro/>
	        <@friendList username="${data.userInSession}" />
	        <@friendHint />
			<div class="clearthis"></div>
			<a href="http://igoal.vn/goal/view/335" >
				<img src="http://igoal.vn/photos/banner_baohanhtreem.png" style="margin-top:10px"/>
			</a>
        </#if>
	</div>
</div>
